|
This page last changed on Nov 19, 2014 by kgomes.
These instructions are for users who want to get the ESP control software (simulator too) up and running on their local machine. These were written for both CentOS.
Prerequisites
- Clean install of CentOS 6.6 (this has gcc 4.4 by default)
Steps to build and run
- I first logged in as kgomes
- Then opened a terminal window
- I changed to root using
- I then created the log directory by doing
cd /var/log
mkdir kgomes
chown kgomes:kgomes kgomes
- I made sure git was installed. It was not so I installed it using
- I also had to install autoconf using
- And I had to install yacc using
- Then I changed to the root home directory using
- I created a directory I could work in using
- Changed into that directory using
- I needed to build the MBARI version of Ruby, so I checked it out from Brent's repo using
- That created a matzruby directory which I then changed into using
- Not sure why, but running ./espconfig did not work due to some path problems so to fix this, I edited the espconfig file and adding './' in front of 'configure' in two places
- Then I was able to run espconfig this way
- Once that completed, I ran
which installed the ruby executable in /opt/mbari/bin
- I then exited out of the root shell
which put me back in my kgomes account
- I created a working directory by using
- Changed into it using
- I tried to clone the repository, but kept getting a 403 (unauthorized) error which I am sure had something to do with my git configuration as it would not ask for my username and password event though this is a private rep. To get around this, I just opened a browser, logged into to github and downloaded the zip file which I put in the esp directory. NOTE: I did verify this works with the Git clone as well. I had to create an SSH key and add that up on GitHub from the CentOS machine, then the git clone worked fine.
- Now, in order to setup the ESP environment so it can run on my machine, I edited my .bashrc file and add the following:
export ESPhome=/home/kgomes/esp/ESP2Gscript-master
export ESPname=gordon
export ESPmode=simreal
export ESPpath=.:$ESPhome/mission:$ESPhome/protocol
export ESPconfigPath=$ESPhome/shallow:$ESPhome/shallow/$ESPname
export PATH=$PATH:$ESPhome/bin:/opt/mbari/bin
export RUBYLIB="${RUBYLIB:+$RUBYLIB:}$ESPhome/lib:$ESPhome/utils:$ESPhome/protocol"
- You should then source the .bashrc (or other) file to setup the environment
- Once this was done, I was successfully able to run
to get the ESP server running
|